package com.qyhl.webtv.module_news.news.jlnews.list;


import com.qyhl.webtv.commonlib.entity.news.NewsBean;

import java.util.List;

public class JLNewsListPresenter implements JLNewsListContract.JLNewsListPresenter {
    private JLNewsListContract.JLNewsListView mView;
    private JLNewsListModel mModel;

    JLNewsListPresenter(JLNewsListContract.JLNewsListView mView) {
        this.mView = mView;
        this.mModel = new JLNewsListModel(this);
    }

    @Override
    public void getList(int type, String page) {
        mModel.getList(type, page);
    }

    @Override
    public void setListData(List<NewsBean> beanList, boolean isMore) {
        mView.setListData(beanList,isMore);
    }

    @Override
    public void setError(int code,boolean isMore) {
        mView.setError(code,isMore);
    }
}
